<?php
#LoginBox Version 0.1

function loginbox($login){
	if ($login == 'true') {
		$loginbox = "Logout";
		return $loginbox;
	}
	if ($login == 'false') {
		$loginbox = "<div class='loginbox' align='center'>
<form action='index.php' method='post' name='login'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td><strong>User:</strong></td>
    <td><input type='text' name='user' /></td>
  </tr>
  <tr>
    <td><strong>Pass:</strong></td>
    <td><input type='password' name='pass' /></td>
  </tr>
</table>
<br />
<input type='submit' class='loginbutton' value='Login'  />
</form>
</div>";
		return $loginbox;
	}
}
?>